package com.jiangcheng.kafka;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.listener.MessageListener;

public class KafkaConsumerSerivceImpl implements MessageListener<String, String> {
    private Logger log = LoggerFactory.getLogger(this.getClass());
    public void onMessage(ConsumerRecord<String, String> data) {
        String topic = data.topic();
        String value = data.value();
        log.info("----<<<<<<topic={},value={}",topic,value);
    }
}
